package HomeWork.ooday02;

public class Animal {
    int age;
    String name;
    String color;
    Animal(String name, String color,int age){
        this.age=age;
        this.name=name;
        this.color=color;
    }
    void eat(){
        System.out.println(name+"在吃饭...");
    }
    void drink(){
        System.out.println(name+"在喝水...");
    }

}
